Pet Store Web Service
Pet Store Web Service / Operations about user Resource Group / getUserByName (Get)
In This Topic
    GetgetUserByName
    In This Topic

    Resource Path: /user/{username}

    Description
    Get user by user name
    Parameters
    NameDescriptionData Type
    The name that needs to be fetched. Use user1 for testing. string
    Response

    The response body is of type User.

    successful operation

    Overview

    User
    Represents an individual user.
    id : integer
    Unique identifier for this user.
    username : string
    Unique user name.
    firstName : string
    First Name.
    lastName : string
    Last Name.
    email : string
    Email address.
    password : string
    Current password.
    phone : string
    Phone number.
    userStatus : integer
    1 = registered, 2 = active, 3 = closed.
    Fault Responses
    FaultDescription
    Invalid username supplied
    User not found
    See Also